{% extends "blog/index.html" %}
{% block title %}{{ o.title }} | 全文阅读{% endblock %}

# 正文部分
{% block content %}
<div id="content">
<div class="post-item">
    <div class="post-item-title">{% if o.name %}{{ o.name }}{% else %}{{ o.title }}{% endif %}</div>
    <div class="post-item-content">{{ o.content|safe }}</div>
    <div class="post-item-clear"></div>
    <div class="post-item-describe">
        posted @ {{ o.date|date:'Y-m-d H:m:s' }} {{ o.author }} 阅读({{ o.read_count }}) 评论({{ o.comments_set.all.count }}) <a href="/blog/edit/{{ o.seed }}">编辑</a></div>
    <div class="clear"></div>
</div>

{% if o %}
<ul>
{%  for c in o.comments_set.all %}
<li>{{ c.date|date:'Y-m-d H:m:s' }}<br/>{{ c.author_name }}{{ c.content }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}

{% block footer %}{% endblock %}